using System;
using System.Diagnostics;
using System.Windows.Input;

namespace visualtwimilar
{
	public class NavigateTo : ICommand
	{
		private readonly string _name;

		public NavigateTo(string name)
		{
			_name = name;
		}

		public void Execute(object parameter)
		{
			Process.Start(new ProcessStartInfo(string.Format("http://twitter.com/{0}", _name)));
		}

		public bool CanExecute(object parameter)
		{
			return true;
		}

		public event EventHandler CanExecuteChanged;
	}
}